package edu.ncsu.csc.itrust.bean;

import java.text.SimpleDateFormat;
import java.util.Date;
import junit.framework.TestCase;
import edu.ncsu.csc.itrust.beans.LabTechProcedureBean;

public class LabTechProcedureBeanTest extends TestCase {
	LabTechProcedureBean l;
	LabTechProcedureBean l2;
	LabTechProcedureBean l3;
	@Override
	protected void setUp() throws Exception {
		String fName = "fName";
		String fNamer = "fNamer";
		l = new LabTechProcedureBean("fNAme", "fName", 0, "fName", 0, 0, 0);
		l.setFirstName(fName);
		l.setLastName(fName);
		l.setLtId(0);
		l.getName();
		l.setSpecialty(fName);
		l.setTotalP1(0);
		l.setTotalP2(0);
		l.setTotalP3(0);
		l.setTotalProcedures(0);
		l2 = new LabTechProcedureBean("fNAme", "fName", 0, "fName", 0, 0, 0);
		l2.setFirstName(fName);
		l2.setLastName(fName);
		l2.setLtId(0);
		l2.getName();
		l2.setSpecialty(fName);
		l2.setTotalP1(0);
		l2.setTotalP2(0);
		l2.setTotalP3(0);
		l2.setTotalProcedures(0);
		l3 = new LabTechProcedureBean("fNAmer", "fNamer", 1, "fNamer", 0, 0, 0);
		l3.setFirstName(fNamer);
		l3.setLastName(fNamer);
		l3.setLtId(1);
		l3.getName();
		l3.setSpecialty(fNamer);
		l3.setTotalP1(0);
		l3.setTotalP2(0);
		l3.setTotalP3(0);
		l3.setTotalProcedures(1);
	}
	
	public void testBaseCaseBean() throws Exception {
		l.getFirstName();
		l.getLastName();
		l.getLtId();
		l.getName();
		l.getSpecialty();
		l.getTotalP1();
		l.getTotalP2();
		l.getTotalP3();
		l.getTotalProcedures();
		l.compareTo(l2);
		l.compareTo(l3);
		l2.compareTo(l3);
//		assertEquals(0000000001, l.getPid());
//		assertEquals(10, l.getProcedureID());
//		assertEquals("12345-6", l.getLoinc());
//		assertEquals(LabProcedureBean.In_Transit, l.getStatus());
//		assertEquals("Their blood is purple and orange.", l.getCommentary());
//		assertEquals("Please call us for your results.", l.getResults());
//		assertEquals(10023, l.getOvID());
//		Date date = new SimpleDateFormat("MM/dd/yyyy HH:mm").parse("03/28/2008 12:00");
//		assertEquals(date.getTime(), l.getTimestamp().getTime());
//		assertEquals(LabProcedureBean.Allow, l.getRights());
	}
}
